
package org.dyndns.cooland.updater.downloader;

import java.util.EventObject;

public class DownloaderEvent extends EventObject {
	
	private static final long	serialVersionUID	= -2961635154095178888L;
	public final static int		PERCENT_CHANGE		= 0;
	public final static int		TEXT_CHANGE			= 1;
	
	int							id;
	
	public DownloaderEvent (Object source, int id) {

		super(source);
		this.id = id;
	}
	
	public int getID() {

		return id;
	}
	
	public String toString() {

		String srcName = null;
		if (source instanceof String){
			srcName = (String) source;
		}
		else{
			srcName = source.getClass().getName();
		}
		return srcName;
	}
}
